import request from '@/utils/request'

// 查询租赁服务图片信息列表
export function listPic(query) {
  return request({
    url: '/construction/pic/list',
    method: 'get',
    params: query
  })
}

// 查询租赁服务图片信息详细
export function getPic(rentalPicId) {
  return request({
    url: '/construction/pic/' + rentalPicId,
    method: 'get'
  })
}

// 新增租赁服务图片信息
export function addPic(data) {
  return request({
    url: '/construction/pic',
    method: 'post',
    data: data
  })
}

// 修改租赁服务图片信息
export function updatePic(data) {
  return request({
    url: '/construction/pic',
    method: 'put',
    data: data
  })
}

// 删除租赁服务图片信息
export function delPic(rentalPicId) {
  return request({
    url: '/construction/pic/' + rentalPicId,
    method: 'delete'
  })
}

// 导出租赁服务图片信息
export function exportPic(query) {
  return request({
    url: '/construction/pic/export',
    method: 'get',
    params: query
  })
}

// 图片上传
export function uploadRental(data) {
  return request({
    url: '/construction/pic/uploadRental',
    method: 'post',
    data: data
  })
}

